package com.hgx.mybatis.plus.more.injector;

import com.baomidou.mybatisplus.core.injector.AbstractMethod;
import com.baomidou.mybatisplus.core.injector.DefaultSqlInjector;

import java.util.List;

/**
 * Author:     hanguixian
 * Date:     2019/9/8 23:35
 * Description: sql注册器
 */
public class MyDeleteAllSqlInjector extends DefaultSqlInjector {

    @Override
    public List<AbstractMethod> getMethodList(Class<?> mapperClass) {
        List<AbstractMethod> methodList  =   super.getMethodList(mapperClass);
        methodList.add(new MysqlDeleteAll());
        return methodList;
    }
}
